
jQuery(document).ready(function() {
	"use strict";

	pageList();
});

/*  ---------------------------------------------------
    报告单清单
    --------------------------------------------------- */
function pageList() {
	jQuery('#content').infinitescroll({
		loading: {
			msgText: "",
			finishedMsg: '<i class="fa fa-times-circle"></i>&nbsp;没有新数据了...',
			selector: '.loading' 
		},
		hideNav: '#pages',
		navSelector: "#pages", 
		nextSelector: "#next", 
		itemSelector: "#doctor_item", 
		dataType: 'html', 
		template: function(data) {
			return data.list;
		},
		extraScrollPx: 50, 
		errorCallback: function() { 
		},
		path: function(index) { 
			var uid = jQuery("#uid").val().trim();
			var type = jQuery("#type").val().trim();
			return "do_my_repost?page=" + index + "&uid=" + uid + "&type=" +type ;
		},
	},
	function(newElements, data, url) {
	});
};
